import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import type {RouteRecordRaw} from "vue-router"
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/index',
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('@/views/screenView/index.vue'),
    children:[
      // {
      //   path: '/index',
      //   name: 'index',
      //   component: () => import('@/views/index/index.vue'),
      // }
    ]
  },
  // {
  //   path: '/home1',
  //   name: 'home1',
  //   component: () => import('@/views/HomeView.vue'),
  //   children:[
  //     {
  //       path: '/index1',
  //       name: 'index1',
  //       component: () => import('@/views/index/index.vue'),
  //     }
  //   ]
  // },
  
]
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes,
})

router.beforeEach((to, from, next) => {
  next();
})

export default router
